package star.cloud.asme.asmePerson.asmePersonTrain.asmePersonTrainCourse;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Transient;
import lombok.*;
import star.cloud.asme.base.mybatis.IBaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Entity(name = "senpec_asme_person_train_course")
@TableName("senpec_asme_person_train_course")
public class AsmePersonTrainCourse extends IBaseEntity<AsmePersonTrainCourse> {
    private Integer sequence;
    private String method;
    private Integer level;
    private String courseName;
    private Float courseScore;
    private String attachmentUuid;
    private String attachmentUrl;
    @Transient
    @TableField(exist = false)
    private Integer progress;
    @Transient
    @TableField(exist = false)
    private Boolean isStarted;
}
